{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>商家公众号列表</strong></li>
	</ol>
</div>
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
						<a href="{:url('add')}" class="btn btn-primary btn-outline">添加</a>
					</div>
					
				</div>
			</div>
		</div>
			<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">
		    <div class="row">
					<div class="form-group">&nbsp;&nbsp;&nbsp;&nbsp;
						公众号名称 <input type="text" id="publicname" name="publicname" value="" placeholder="请输入公众号名称" class="bank" />
						商家名称 <input type="text" id="store_name" name="store_name" value="" placeholder="请输入商户名称" class="bank" />
		      			审核状态 <select class="bank" name="status">
			         			<option value="2">请选择</option>                            
                     			<option value="0">关闭</option>
                         		<option value="1">正常</option>
                           		</select> 
                   		下单时间 <input id='add_time' name='add_time'   onclick='WdatePicker()' placeholder="开始时间" class="bank" />
						<input id='end_time' name='end_time'   onclick='WdatePicker()'  placeholder="结束时间" class="bank" />
						<span class="bank" style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
					</div> 
        	</div>
        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>商家名</th>
                                <th>公众号名称</th>
                                <th>公众号ID</th>
                                <th>APPID</th>
                                <th>回调域名</th>
                                <th>电脑端账号绑定</th>
                                <th>状态</th>
                                  <th>时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.store_name}</td>
                        		<td>{$ad.publicname}</td>
                        		<td>{$ad.publicid}</td>
                        		<td>{$ad.appid}</td>
                        		<td>{$ad.callbackname}</td>
                        		<td>{if $ad.pcbindstatus == 0}
                        			开启
                         			{elseif $ad.pcbindstatus == 1}
                         			关闭
                         			{/if}</td>
                        		<td>
                        			{if $ad.status == 0}
                        			关闭
                         			{elseif $ad.status == 1}
                         			正常
                         			{/if}
                        		</td>
                        		<td>{$ad.add_time}</td>
                        		<td>	
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp; 
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
									
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block}{block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
	<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}